package edu.sctu.practice.class02.zengguangchuan.test17;

/**
 * Created by lenovo0 on 2015/11/5.
 */
public class Auto {
    public int tires;
    public String color;
    public int load;
    public int speed;

    public Auto(  int tires, String color,int load, int speed){
        this.tires=tires;
        this.color=color;
        this.load=load;
        this.speed=speed;
    }

    public void upSpeed(){
        System.out.println("加速");
    }

    public void downSpeed(){
        System.out.println("减速");
    }

    public void stop(){
        System.out.println("停车");
    }

    public void getInfo(){
        System.out.println("轮胎数："+tires+"");
        System.out.println("颜色："+color+"");
        System.out.println("车身重量："+load+"");
        System.out.println("速度："+speed+"");
    }
}
